package se480.tracker.event;

import se480.tracker.TrackerConstants.TrackerEventGroup;
import se480.tracker.TrackerConstants.TrackerEventType;

/**
 * These are the Tracker System events - update, new, query whereis, etc.
 * 
 * @author mmichalak
 *
 */
public class TrackerEvent {

	TrackerEventGroup eventGroup;
	String id;
	int tick;
	TrackerEventType eventType;
	int xCoord;
	int yCoord;
	int queryTickTime;
	String failProcessor;
	
	public boolean isQueryEvent() {

		return false;
	}

	public int getTick() {
		return tick;
	}

	public void setTick(int tick) {
		this.tick = tick;
	}

	public TrackerEventType getEventType() {
		return eventType;
	}

	public void setEventType(TrackerEventType eventType) {
		this.eventType = eventType;
	}

	public int getXCoord() {
		return xCoord;
	}

	public void setXCoord(int xCoord) {
		this.xCoord = xCoord;
	}

	public int getYCoord() {
		return yCoord;
	}

	public void setYCoord(int yCoord) {
		this.yCoord = yCoord;
	}

	public int getQueryTickTime() {
		return queryTickTime;
	}

	public void setQueryTickTime(int queryTickTime) {
		this.queryTickTime = queryTickTime;
	}

	public String getFailProcessor() {
		return failProcessor;
	}

	public void setFailProcessor(String failProcessor) {
		this.failProcessor = failProcessor;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Override
	public String toString() {
		return "Event [id=" + id + ", tick=" + tick + ", eventType="
				+ eventType + ", xCoord=" + xCoord + ", yCoord=" + yCoord
				+ ", queryTickTime=" + queryTickTime + ", failProcessor="
				+ failProcessor + "]";
	}

	public TrackerEventGroup getEventGroup() {
		return eventGroup;
	}

	public void setEventGroup(TrackerEventGroup eventGroup) {
		this.eventGroup = eventGroup;
	}
}
